#ifndef __box
#define __box
template <typename T> struct box {
	T left, bottom;
	T right, top;
	T width, height;

	box () {
		left = bottom = right = top = width = height = 0;
	}
	box (T l, T b, T r, T t) {
		operator() (l, b, r, t);
	}
	inline void operator() (T l, T b, T r, T t) {
		left = l;
		bottom = b;
		right = r;
		top = t;
		width = right - left;
		height = top - bottom;
	}
};
#endif

